package org.bright.service.Impl;

import org.bright.dao.BookDao;
import org.bright.dao.Impl.BookDaoImpl;
import org.bright.service.BookService;

public class BookServiceImplConS implements BookService {
    private String name;
    private int age;
    BookDao bookDao;
    public BookServiceImplConS(BookDaoImpl bookDao,String name,int age) {
        this.name = name;
        this.age = age;
        this.bookDao = bookDao;
    }

    @Override
    public void getList() {
        bookDao.getList();
        System.out.println("name:"+name+" age:"+age);
    }
}
